
class RewardComponent:
    """奖励组件基类"""
    def __init__(self, weight=1.0):
        self.weight = weight
        
    def calculate(self, current_activity, next_activity, case_events, context=None):
        """计算组件奖励值"""
        raise NotImplementedError("子类必须实现calculate方法")
    
    def get_description(self):
        """返回组件描述"""
        return "基础奖励组件"